dnl vim: set sw=8 sts=8 noet :

AC_INIT([limshsql], [0.0])
AC_PREREQ(2.5)
AM_INIT_AUTOMAKE(1.9)
AC_PROG_CC
AC_CONFIG_HEADER(config.h)
AC_PROG_CC_C_O
dnl check for required programs
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB
AC_PROG_MAKE_SET
AC_TYPE_SIZE_T
AC_TYPE_PID_T
AC_C_BIGENDIAN
AC_C_INLINE
AC_CHECK_SIZEOF(int, 32)
dnl check for required headers
AC_CHECK_HEADER(stdio.h)
AC_CHECK_HEADER(stdlib.h)
AC_CHECK_HEADER(unistd.h)
AC_CHECK_HEADER(string.h)
AC_CHECK_HEADER(signal.h)
AC_CHECK_HEADER(time.h)
AC_CHECK_HEADER(pwd.h)
AC_CHECK_HEADER(sys/types.h)
AC_CHECK_HEADER(mysql/mysql.h)
AC_CHECK_HEADER(readline/readline.h)
dnl check for required libraries
AC_CHECK_LIB(ncurses,wmove,, [echo "ncurses not found" &&exit 1])
AC_CHECK_LIB(readline,readline,, [echo "readline not found" &&exit 1])
dnl output
AC_OUTPUT(
	Makefile
	src/Makefile
	)
